package com.wdb007.venus.svc.facade;

import java.math.BigDecimal;

import com.wdb007.venus.svc.facade.account.model.AccountCashDTO;
import com.wdb007.venus.svc.facade.account.model.AccountCashLogVO;
import com.wdb007.venus.svc.facade.account.model.ChargeAmount;
import com.wdb007.venus.svc.facade.account.model.ChargeAmountVO;
import com.wdb007.venus.svc.facade.book.model.UserBorrowPageDTO;
import com.wdb007.venus.svc.facade.exception.BizException;

public interface AccountCashService {
	/**
	 * 余额是否大于1.0元
	 * @param userid
	 * @return
	 */
	boolean isAdequate(Long userid) throws BizException;
	/**
	 * 是否缴纳押金
	 * @param userid
	 * @return
	 */
	boolean isDeposit(Long userid) throws BizException;
	
	AccountCashLogVO getChargeList(UserBorrowPageDTO userBorrowPageDTO) throws BizException;
	
	ChargeAmountVO getChargeDepositAmountList() throws BizException;
	
	ChargeAmountVO getChargeOnlyAmountList() throws BizException;
	
	ChargeAmount getChargeByCode(String chargeCode) throws BizException;
	
	int updateAccountCash(AccountCashDTO acDTO) throws BizException;
	
	BigDecimal getChargeAmount(Long chargeLogId);
	
}
